/***************************************************************************
 *   Copyright © 2010 by Nikolay Kornaev                                   *
 *   n.kornaev@gmail.com                                                   *
 *                                                                         *
 *                    This file is part of neuma.                          *
 *                                                                         *
 *   neuma is free software; you can redistribute it and/or modify it      *
 *   under the terms of the GNU General Public License as published by     *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   neuma is distributed in the hope that it will be useful,              *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, see <http://www.gnu.org/licenses/>   *
 ***************************************************************************/

#pragma once

class QString;

namespace Neuma
{
  class NSPair
  {
  public:
    NSPair(const QString &neuma, const QString &syllabe) :
      _n(neuma), _s(syllabe), _c(QString()), _isNewLine(false), _isComment(false)
    {
    }

    NSPair(const QString &comment) :
      _n(QString()), _s(QString()), _c(comment), _isNewLine(false), _isComment(true)
    {
    }

    NSPair() :
      _n(QString()), _s(QString()), _c(QString()), _isNewLine(true), _isComment(false)
    {
    }

    QString getNeuma() const
    {
      return _n;
    }

    QString getSyllabe() const
    {
      return _s;
    }

    bool isNewLine() const
    {
      return _isNewLine;
    }

    bool isComment() const
    {
      return _isComment;
    }

    QString getComment() const
    {
      return _c;
    }

  private:
    const QString _n;
    const QString _s;
    const QString _c;

    const bool _isNewLine;
    const bool _isComment;
  };

  typedef QList<NSPair*> NeumasData;
}
